// ModelLayerActiveXPropPage.cpp : Implementation of the CModelLayerActiveXPropPage property page class.

#include "stdafx.h"
#include "ModelLayerActiveX.h"
#include "ModelLayerActiveXPropPage.h"
#include "Resource.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


IMPLEMENT_DYNCREATE(CModelLayerActiveXPropPage, COlePropertyPage)



// Message map

BEGIN_MESSAGE_MAP(CModelLayerActiveXPropPage, COlePropertyPage)
END_MESSAGE_MAP()



// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CModelLayerActiveXPropPage, "MODELLAYERACTI.ModelLayerActiPropPage.1",
	0x7c7b5b4, 0x19d0, 0x4012, 0xa7, 0x95, 0x6f, 0x4c, 0xfc, 0x6e, 0xb6, 0xa0)



// CModelLayerActiveXPropPage::CModelLayerActiveXPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CModelLayerActiveXPropPage

BOOL CModelLayerActiveXPropPage::CModelLayerActiveXPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_MODELLAYERACTIVEX_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}



// CModelLayerActiveXPropPage::CModelLayerActiveXPropPage - Constructor

CModelLayerActiveXPropPage::CModelLayerActiveXPropPage() :
	COlePropertyPage(IDD, IDS_MODELLAYERACTIVEX_PPG_CAPTION)
{
}



// CModelLayerActiveXPropPage::DoDataExchange - Moves data between page and properties

void CModelLayerActiveXPropPage::DoDataExchange(CDataExchange* pDX)
{
	DDP_PostProcessing(pDX);
}



// CModelLayerActiveXPropPage message handlers
